package com.glodon.paas.account.dao.mysql;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.glodon.paas.account.dao.UserAdviceReplyDao;
import com.glodon.paas.account.dao.domain.UserAdviceReplyEntity;
import com.glodon.paas.account.dao.mapper.UserAdviceReplyEntityMapper;
 

public class UserAdviceReplyDaoMysqlImpl implements UserAdviceReplyDao{

	@Autowired
	private UserAdviceReplyEntityMapper userAdviceReplyEntityMapper;
	
	@Override
	public int deleteByPrimaryKey(String id) {		
		return userAdviceReplyEntityMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(UserAdviceReplyEntity record) {
		return userAdviceReplyEntityMapper.insertSelective(record);
	}

	@Override
	public UserAdviceReplyEntity selectByPrimaryKey(String id) {
		return userAdviceReplyEntityMapper.selectByPrimaryKey(id);
	}


	@Override
	public int updateByPrimaryKey(UserAdviceReplyEntity record) {
		return userAdviceReplyEntityMapper.updateByPrimaryKeySelective(record);
	}
	

	@Override
	public List<UserAdviceReplyEntity> selectByAdviceId(String id,Integer startIndex, Integer count) {
		return userAdviceReplyEntityMapper.selectByAdviceId(id, startIndex, count);
	}
	
	
	
}
